package com.ruoyi.third.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接入消息对象 third_message
 * 
 * @author yepanpan
 * @date 2025-02-06
 */
@Data
public class ThirdMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    public static final String TYPE_DEVICE = "1";
    public static final String TYPE_EVENT = "2";
    public static final String TYPE_MONITOR = "3";

    /** 自增长主键ID */
    private Long id;

    /** 平台 */
    @Excel(name = "平台")
    @NotNull
    private String pfCode;

    /** 设备 */
    @NotNull
    private Long deviceId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @NotNull
    private String deviceCode;


    /** 安装位置 */
    @Excel(name = "安装位置")
    private String position;

    /** 类别 */
    @Excel(name = "类别", dictType="third_message_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 消息内容 */
    @Excel(name = "消息内容")
    @NotNull
    private String content;

    /** 接收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接收时间", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date msgTime;

    /** 处置结果 */
    @Excel(name = "处置结果", dictType="sys_common_status", comboReadDict=true)
    private String results;


}
